#!/usr/bin/python
# -*- coding: utf-8 -*-
#
#
#
#

"""
#TODO: documentation!
"""

__author__ = 'DR0ID'
__last_change_by__ = '$Author$'
__revision__ = '$Revision$'
__date__ = '$Date$'
__license__ = 'see readme.txt'
__copyright__ = 'Dlacewell, DR0ID (c) 2008'
__url__ = 'http://code.google.com/p/bipy/'
__email__ = 'dr0iddr0id@googlemail.com, DLacewell@googlemail.com'

# make sure the test can find the bipy module
import sys
import unittest
from os.path import split, abspath
BIPY_PATH = split(split(split(abspath(__file__))[0])[0])[0]
if BIPY_PATH not in sys.path:
    sys.path.insert(0, BIPY_PATH)

import bipy

class UTest_Foundations(unittest.TestCase):
    """Test the core Bipy foundations"""
    def t00_initialization(self):
        """Make sure Bipy initializes."""
        try:
            bipy._requires_pyglet_version('0.1')
        except ImportError:
            self.fail('testing required Pyglet version')
            
        bipy.init( logname = 'test.log' )
        self.failUnless( bipy.get_init(), 'initializing Bipy')


if __name__ == '__main__':
    unittest.TextTestRunner(verbosity=2).run(unittest.makeSuite(UTest_Foundations))